program pascal;

{$APPTYPE CONSOLE}

uses
  SysUtils;

type
  arr= array of integer;
var
  mass: array of arr;
  i,j,n: integer;
begin
  readln(n);
  setlength(mass,n);
  for i:= 0 to (n-1) do
    setlength(mass[i],n);
  for i:= 0 to (n-1) do
    mass[i][0]:=1;
  for i:= 0 to (n-1) do
    mass[i][i]:=1;
  for i:= 1 to (n-2) do
    for j:= 1 to (i-2) do
      mass[i][j]:=mass[i-1][j]+mass[i-1][j-1];
  for i:= 0 to (n-1) do
  begin
    writeln;
    for j:= 1 to (i-1) do
      write(mass[i][j]);
  end;
  readln;
end.
 